package org.garbagecan.dwrstudy;

import java.util.*;

public class UserService {
	
	private static List<User> users = new ArrayList<User>();
	
	public List<User> getList() {
		for( int i = 0 ; i < 3 ; i++ ) {
			User user = new User();
			user.setName("user" + i);
			user.setPassword("password" + i);
			users.add(user);
		}
		return users;
	}
	
	public void clear() {
		users.clear();
	}
}